import 'dart:ffi';

extension StringExtension on String {
  String toImage() {
    int index = this.indexOf('?');
    String result = "";
    if (index > 0) {
      result = this.substring(0, index);
    }
    return result;
  }

  String dealNumber() {
    double number = double.parse(this);
    print(number / 10000);
    if (number / 10000 > 1) {
      double val = number / 10000;
      return "${val.toStringAsFixed(1)}万";
    }
    return this;
  }
}
